import request from '@/utils/request'
export function list(page,size){
	return request({
		url: '/service/list',
		method: 'post',
		params:{
			page: page,
			size: size
		}
	})
}

export function update(data){
	return request({
		url: '/service/update',
		method: 'post',
		data
	})
}

export function del(data){
	return request({
		url: '/service/delete',
		method: 'post',
		data
	})
}

export function search(formline,pageSize,currentPage){
	return request({
		url: '/service/search',
		method:'post',
		params:{
			servicename: formline.servicename,
			hostname: formline.hostname,
			servicedeveloper: formline.servicedeveloper,
			service_url: formline.service_url,
			size: pageSize,
			page: currentPage
		}
	})
}

export function syncwayne(){
	return request({
		url: '/service/updatewayneinfo',
		method:'post',
	})
}

export function listgroupbyname(){
	return request({
		url: '/service/listgroupbyname',
		method:'post',
	})
}

export function listwithoutdeploy(){
	return request({
		url: '/service/listwithoutdeploy',
		method:'post',
	})
}